/*
 * @,@Descripttion: 活动相关:
 * @,@Author: ,: along
 * @,@Date: ,: 2021-03-11 16:41:44
 * @,@LastEditors: ,: along
 * @,@LastEditTime: ,: 2021-03-11 16:56:02
 */
export default {
    namespaced: true,
    state: {
        info: { //抽奖活动列表子页面传递数据
            win_user_count: 0,//中奖人数
            win_count: 0,//中奖次数
            exchange_user_count: 0,//领奖人数
            exchange_count: 0,//领奖次数
            try_user_count: 0,//参与人数
            try_count: 0//参与次数
        }
    },
    mutations: {
        SET_ACTIVE_INFO(state, info) {
            localStorage.setItem('ZSDX_ACTIVE_INFO', JSON.stringify(info));
            state.info = {
                ...info
            };
        },
        CHECK_ACTIVE_INFO(state) {
            state.info = JSON.parse(localStorage.getItem('ZSDX_ACTIVE_INFO'));
        }
    }
};
